package com.emep.changzhi.analyse.repository.datamonitor.hour;


import com.emep.changzhi.analyse.entity.datamonitor.hour.DataHourIndustrialGas;
import org.springframework.data.repository.CrudRepository;
import org.springframework.data.cassandra.repository.Query;
import org.springframework.data.repository.query.Param;

import java.util.List;

/**
 * @author yangj
 * @version V1.0
 * @Description: 工业废气监测_小时数据表持久层
 * @date 2018/2/27  14:45
 */
public interface DataHourIndustrialGasRepository extends CrudRepository<DataHourIndustrialGas, Long> {

    @Query("select * from data_hour_industrial_gas limit :pageSize")
    List<DataHourIndustrialGas> industrialGasHome(@Param("pageSize") Integer pageSize);
    @Query("select * from data_hour_industrial_gas where token(id)>token(:id) limit :pageSize")
    List<DataHourIndustrialGas> industrialGasFlip(@Param("id")String id,@Param("pageSize") Integer pageSize);

}
